﻿
namespace CodeMilkerV2.Models {
    public class Attribute {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Label { get; set; }
        /// <summary>
        /// DataType
        /// </summary>
        public string DataTypeName { get; set; }
        public DataType DataType { get; set; }
        public int Length { get; set; }
        public int Precision { get; set; }
        public int Scale { get; set; }
        public bool IsNullable { get; set; }
        public string DefaultValue { get; set; }
        public bool IsPKey { get; set; }
        public bool IsFKey { get; set; }
        public bool IsEdit { get; set; }
        public bool Required { get; set; }
        /// <summary>
        /// Allow
        /// </summary>
        public string AllowCondition { get; set; }
        public Allow Allow { get; set; }
        public string MinVal { get; set; }
        public string MaxVal { get; set; }
        public string RegEx { get; set; }
        public string Remark { get; set; }

    }
}
